<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>用户统计 | 基地</title>
<@fm.header />
<script>
function doSearch(){    
    $('#tt').datagrid('load', {    
        startTime: $('#startTime').datebox('getValue'),
        endTime: $('#endTime').datebox('getValue'),
        base: $('#base').combobox('getValue')
    });
}

</script>
</head>
<body class="cmp-list-body">
<div id="tb" style="padding:3px">
    <span>基地:</span>
	<select class="easyui-combobox" id="base" panelHeight="auto" style="width:155px" >
        <option value="" selected>总量</option>
        <#list baseInfos as base>
        	 <option value="${base.id!}">${base.baseName!}</option>
		</#list>
    </select>
        
    <span>执行时间:</span>
    <input type="text" class="easyui-datebox" id="startTime" />至
    <input type="text" class="easyui-datebox" id="endTime" />
    
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a> 
</div>
<table id="tt" class="easyui-datagrid" title="用户统计|基地" iconCls="icon-save" 
	url="/use/base/listJson" toolbar="#tb" rownumbers="true" idField="id"
	singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]"> 
    <thead>
        <tr>
        	<th align="center" width="35%" field="day">日期</th>
            <th align="center" width="35%" field="baseName">基地</th>
            <th align="center" width="25%" field="num">数量</th>
        </tr>
    </thead>   
</table>
</body>
</html>